package com.gin.kotlin.no_gay_alliance.database.entity

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.time.ZonedDateTime

/**
 * IP属地历史
 * @property id Long
 * @property timestamp 时间戳
 * @property userId 用户ID
 * @property location IP属地
 * @constructor
 */
@Entity
data class IpLocationHistory(
    @PrimaryKey(true)
    val id:Long,
    val timestamp: ZonedDateTime,
    @ColumnInfo(index = true)
    val userId:Long,
    val location:String,
    )
